use binary_heap::*;

#[test]
fn test_binary_heap_new() {
    let compare_func = |a: BinaryHeapValue, b: BinaryHeapValue| -> c_int {
        // Dummy compare function
        0
    };

    let heap = binary_heap_new(BinaryHeapType::BINARY_HEAP_TYPE_MIN, compare_func);
    assert!(!heap.is_null());
    binary_heap_free(heap);
}

// ... other test functions translated similarly
